$(function () {
    var footer = document.querySelector('footer');
    var xhr1 = new XMLHttpRequest();
    xhr1.open('GET', './myfooter.html');
    xhr1.send();
    xhr1.onreadystatechange = function () {
        if (xhr1.readyState == 4 && xhr1.status == 200) {
            footer.innerHTML = xhr1.responseText;
        }
    }
})